package sean.org;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AopConfig.class);
		DemoAnnotationService annoSer = context.getBean(DemoAnnotationService.class);
		DemoMethodService ser = context.getBean(DemoMethodService.class);
		annoSer.add();
		ser.add();
		context.close();
	}
}
